package com.zys.el.time.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zys.el.time.dto.ScrollPage;
import com.zys.el.time.entity.Thinking;
import com.zys.el.time.vojo.ThinkingVo;


public interface ThinkingService extends IService<Thinking> {

    ThinkingVo getThinkingVoById(Long thinkingId);

    ScrollPage<ThinkingVo> getPageByChannelId(Long channelId, Long max, int offset, int size);

    void updateWithCheckUser(Thinking thinking);

    /**
     * 保存（MySQL，Redis）并审核
     * @param thinking
     * @return
     */
    boolean saveAndReview(Thinking thinking);
}
